# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=gstreamermm
pkgver=1.10.0
pkgrel=4
pkgdesc="C++ interface for GStreamer"
url="https://gstreamer.freedesktop.org/bindings/cplusplus.html"
arch="all"
license="LGPL-2.1-or-later"
makedepends="glibmm-dev gst-plugins-base-dev"
checkdepends="gtest-dev"
options="!check" #tests are broken
subpackages="$pkgname-dev"
source="https://download.gnome.org/sources/gstreamermm/${pkgver%.[0-9]*}/gstreamermm-$pkgver.tar.xz
	$pkgname-glib-2.68.patch::https://gitlab.gnome.org/GNOME/gstreamermm/-/commit/37116547fb5f9066978e39b4cf9f79f2154ad425.patch
	"

prepare() {
	default_prepare

	update_config_guess
}

build() {
	export CXXFLAGS="$CXXFLAGS -std=c++11"
	./configure --prefix=/usr
	make
}

package() {
	make DESTDIR="$pkgdir" install
}

check() {
	make check
}
sha512sums="
34eeb9eec5958c96acf7c7791eef80138e5d55fea6ddf1bf9ace6b1ec7f052da2abf04d87089e4c9ead51c631ef7afceaf9fceb946ec3d105da522187c69e429  gstreamermm-1.10.0.tar.xz
ce821e8d733f460c9c093d90c76ba66e649439870ed8797b98d927112cfd0d776e5fb858831f50e7cff38cd660b06914a327589c5c27b5f4f8a3783a633fdc8f  gstreamermm-glib-2.68.patch
"
